import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
  name: 'typePipe'
})
export class typePipe implements PipeTransform {
  transform(value: any): any {
    if (value === 1) {
      value = '模块';
    }
    if (value === 2) {
      value = '菜单';
    }
    if (value === 3) {
      value = '操作';
    }
    return value;
  }
}
